<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String errorMsgInf =(String) request.getAttribute("errorMsgInf");
%>


<html>
  <head>
    <base href="<%=basePath%>">
    <title>欢迎进入宿迁学院毕业设计选题系统</title>
    <!--<script src="JS/validate.js" language="javascript" type="text/javascript"></script>  -->
    <script type="text/javascript" >
			function checkForm(){
				if(document.form1.account.value==''){
					alert('用户名不能为空');
					return false;
				}
				if(document.form1.password.value==''){
					alert('密码不能为空');
					return false;
				}
				document.form1.submit();			
			}
			function initPage(){
				var jsErrorMsgInfo = '<%=errorMsgInf%>';
				if(jsErrorMsgInfo=='0'){
					alert('账号或密码错误');
				}
			}	
	</script>	
<style type="text/css">
			<!-- 
			#Layer1 {
				position:absolute;
				left:10px;
				top:5px;
				width:500px;
				height:500px;
				z-index:auto;
				margin-top: 50px;
				margin-left: 300px;
				overflow: hidden;
			}
			.STYLE3 {
				font-size: 18px;
			}
			.STYLE{
			    font-size: 19px;
			}
			-->
 </style>
</head>
  
  <body onload="initPage();">
  
    <div id="Layer1">
      <form name="form1"  method="post"  action=" AccountServlet" >
      <p align="center" class="STYLE">欢迎进入宿迁学院毕业设计选题系统!</p>
        <table width="300" height="200"  align="center" cellspacing="5">
          <tr >
            <td width="200" ><div align="center"class="STYLE3">身份：</div></td>
            <td width="250">
              <div align="center" >
                <select name="select" class="STYLE3" style=" width:200  " >
                  <option value="学生">学生</option>
                  <option value="教师">教师</option>
                  <option value="管理员">管理员</option>
                </select>
              </div>
      		</td>
          </tr>
          <tr>
            <td><div align="center" class="STYLE3" >账号：</div></td>
            <td >
              <div align="center">
                <input name="account" type="text" class="STYLE3" size="19" id="account">
              </div>
           </td>
          </tr>
          <tr>
            <td><div align="center" class="STYLE3">密码：</div></td>
            <td>
              <div align="center">
                <input name="password" type="password" class="STYLE3" size="21" id="password"> 		
              </div>
            </td>
          </tr>
          <tr>
            <td colspan="2" align="center">
				<img src="images/land.gif" onclick=" checkForm() "></img>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<img src="images/reset.gif" onclick="javascript:form1.reset()"></img>
			</td>
          </tr>
        </table>
      </form>
  </div>
    <table width="650" height="417" align="center" background="images/first.jpg">
  		<tr>
    	<td>&nbsp;</td>
  		</tr>
	</table>
		
  </body>
</html>
